using System;

 namespace ClassEntities 
{
	 [Serializable]
	 public class tblGiangVien
	{
	private int stt;
	private int idTruong;
	private string fullName;
	private DateTime ngaysinh;
	private string diachi;
	private string dienthoai;
	private string email;
	private string gioitinh;
	private string password;
	private string enable;
	private object avatar;
	public tblGiangVien()
	{}
	public tblGiangVien(int stt,int idTruong,string fullName,DateTime ngaysinh,string diachi,string dienthoai,string email,string gioitinh,string password,string enable,object avatar)
	{
	this.stt = stt;
	this.idTruong = idTruong;
	this.fullName = fullName;
	this.ngaysinh = ngaysinh;
	this.diachi = diachi;
	this.dienthoai = dienthoai;
	this.email = email;
	this.gioitinh = gioitinh;
	this.password = password;
	this.enable = enable;
	this.avatar = avatar;
	}
	public int Stt{
	get { return this.stt;}
	set { if(value==null) 
		throw new Exception("stt not allow nullvalue.");
		this.stt=value;
	}	}
	public int IdTruong{
	get { return this.idTruong;}
	set {this.idTruong=value;}
	}
	public string FullName{
	get { return this.fullName;}
	set {this.fullName=value;}
	}
	public DateTime Ngaysinh{
	get { return this.ngaysinh;}
	set {this.ngaysinh=value;}
	}
	public string Diachi{
	get { return this.diachi;}
	set {this.diachi=value;}
	}
	public string Dienthoai{
	get { return this.dienthoai;}
	set {this.dienthoai=value;}
	}
	public string Email{
	get { return this.email;}
	set {this.email=value;}
	}
	public string Gioitinh{
	get { return this.gioitinh;}
	set {this.gioitinh=value;}
	}
	public string Password{
	get { return this.password;}
	set {this.password=value;}
	}
	public string Enable{
	get { return this.enable;}
	set {this.enable=value;}
	}
	public object Avatar{
	get { return this.avatar;}
	set {this.avatar=value;}
	}
	public override string ToString(){
	return this.stt+"; "+this.idTruong+"; "+this.fullName+"; "+this.ngaysinh+"; "+this.diachi+"; "+this.dienthoai+"; "+this.email+"; "+this.gioitinh+"; "+this.password+"; "+this.enable+"; "+this.avatar+"; ";
	}
	public override bool Equals(Object obj)
	{
	tblGiangVien me=(tblGiangVien)obj;
	bool ret=this.Stt.Equals(me.Stt);
	return ret;
	}
	public override int GetHashCode()
	{
	return this.Stt.GetHashCode();
	}

	}
} 